package com.ht.medicaltreatment.utils

import android.widget.ImageView
import androidx.annotation.IdRes
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gym.baselib.BaseApplication

fun BaseViewHolder.loadImage(@IdRes imgRes:Int, url:String){
    val imageView = getView<ImageView>(imgRes)
    Glide.with(BaseApplication.context!!)
        .load(url)
        .into(imageView)
}